import {getStore, setStore} from '@/utils/storage'

const state = {
    token: getStore('token')
};

const mutations = {
    SET_TOKEN: (state, token) => {
        state.token = token;
        setStore('token', token)
    }
};


export default {
    namespaced: true,
    state,
    mutations,
}

